package cn.tedu.hotel.serve.pojo.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Orders implements Serializable {
    private Long id;
    private String username;
    private Long userId;
    private String phone;
    private String realName;
    private String idCard;
    private String hotelName;
    private Long hotelId;
    private String roomName;
    private Long roomId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkInTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime departureTime;
    private Integer numberOfPeople;
    private Integer countOfBuyRooms;
    private BigDecimal orderPrice;
    private LocalDateTime createTime;
}
